package com.winit.config.model;

import com.alibaba.fastjson.JSONObject;
import org.springframework.data.cassandra.mapping.PrimaryKey;
import org.springframework.data.cassandra.mapping.Table;

import java.io.Serializable;
import java.util.Set;
import java.util.UUID;

/**
 * Created by wangjian on 2017/9/27.
 */
@Table(value = "uconfig_config")
public class Config implements Serializable {

    @PrimaryKey
    private UUID config_id;
    private String config_app_tag;
    private String config_desc;
    private String config_env_tag;
    private JSONObject config_k_change_map;
    private JSONObject config_k_desc;
    private JSONObject config_k_v_map;
    private JSONObject config_k_v_temp_map;
    private JSONObject config_k_v_ref_id;
    private JSONObject config_k_v_ref_tag;
    private String config_name;
    private String config_parent_id;
    private String config_resource_tag;
    private String config_type_tag;
    private String config_version;
    private String config_zone_tag;
    private String config_deploy_zone_code;
    private String config_deploy_tag;

    //预览用 保存模版渲染后的值 不保存数据库
    private JSONObject k_v_preview_map;

    public UUID getConfig_id() {
        return config_id;
    }

    public void setConfig_id(UUID config_id) {
        this.config_id = config_id;
    }

    public String getConfig_app_tag() {
        return config_app_tag;
    }

    public void setConfig_app_tag(String config_app_tag) {
        this.config_app_tag = config_app_tag;
    }

    public String getConfig_desc() {
        return config_desc;
    }

    public void setConfig_desc(String config_desc) {
        this.config_desc = config_desc;
    }

    public String getConfig_env_tag() {
        return config_env_tag;
    }

    public void setConfig_env_tag(String config_env_tag) {
        this.config_env_tag = config_env_tag;
    }

    public JSONObject getConfig_k_change_map() {
        return config_k_change_map;
    }

    public void setConfig_k_change_map(JSONObject config_k_change_map) {
        this.config_k_change_map = config_k_change_map;
    }

    public JSONObject getConfig_k_v_map() {
        return config_k_v_map;
    }


    public JSONObject getConfig_k_v_ref_id() {
        return config_k_v_ref_id;
    }

    public void setConfig_k_v_ref_id(JSONObject config_k_v_ref_id) {
        this.config_k_v_ref_id = config_k_v_ref_id;
    }

    public JSONObject getConfig_k_v_ref_tag() {
        return config_k_v_ref_tag;
    }

    public void setConfig_k_v_ref_tag(JSONObject config_k_v_ref_tag) {
        this.config_k_v_ref_tag = config_k_v_ref_tag;
    }

    public String getConfig_name() {
        return config_name;
    }

    public void setConfig_name(String config_name) {
        this.config_name = config_name;
    }

    public String getConfig_parent_id() {
        return config_parent_id;
    }

    public void setConfig_parent_id(String config_parent_id) {
        this.config_parent_id = config_parent_id;
    }

    public String getConfig_resource_tag() {
        return config_resource_tag;
    }

    public void setConfig_resource_tag(String config_resource_tag) {
        this.config_resource_tag = config_resource_tag;
    }

    public String getConfig_type_tag() {
        return config_type_tag;
    }

    public void setConfig_type_tag(String config_type_tag) {
        this.config_type_tag = config_type_tag;
    }

    public String getConfig_version() {
        return config_version;
    }

    public void setConfig_version(String config_version) {
        this.config_version = config_version;
    }

    public String getConfig_zone_tag() {
        return config_zone_tag;
    }

    public void setConfig_zone_tag(String config_zone_tag) {
        this.config_zone_tag = config_zone_tag;
    }

    public JSONObject getConfig_k_desc() {
        return config_k_desc;
    }

    public void setConfig_k_desc(JSONObject config_k_desc) {
        this.config_k_desc = config_k_desc;
    }

    public void setConfig_k_v_map(JSONObject config_k_v_map) {
        this.config_k_v_map = config_k_v_map;
    }

    public String getConfig_deploy_zone_code() {
        return config_deploy_zone_code;
    }

    public void setConfig_deploy_zone_code(String config_deploy_zone_code) {
        this.config_deploy_zone_code = config_deploy_zone_code;
    }

    public String getConfig_deploy_tag() {
        return config_deploy_tag;
    }

    public void setConfig_deploy_tag(String config_deploy_tag) {
        this.config_deploy_tag = config_deploy_tag;
    }

    public JSONObject getConfig_k_v_temp_map() {
        return config_k_v_temp_map;
    }

    public void setConfig_k_v_temp_map(JSONObject config_k_v_temp_map) {
        this.config_k_v_temp_map = config_k_v_temp_map;
    }

    public JSONObject getK_v_preview_map() {
        return k_v_preview_map;
    }

    public void setK_v_preview_map(JSONObject k_v_preview_map) {
        this.k_v_preview_map = k_v_preview_map;
    }
}
